How to add background-image using ngStyle in Angular2 ?
The ngStyle Attribute is used to add some style to an HTML element. In this article, we will learn How to add background-image using ngStyle in Angular. To achieve this, we will follow the below approaches....
read more
Javascript Program to Check if a given string is Pangram or not
In this article, we are going to implement algorithms to check whether a given string is a pangram or not....
read more
How to display values from database in real time without refreshing the webpage ?
Display values from database in real time without refreshing the webpage simply refers to auto fetch and re-rendering the data if there is any change due to user interaction or any update in the data from the APIs. In React JS, it can be done by using the states that re-render the UI on updates....
read more
Provide the syntax for optional parameters in TypeScript
In TypeScript, optional parameters allow you to specify that a function parameter may be omitted when calling the function. You denote optional parameters by adding a question mark (?) after the parameter name in the function declaration....
read more
How to use polyfill in JavaScript ?
A polyfill in JavaScript is a script that adds modern features to older browsers that do not natively support them. To use it, include the polyfill script in your HTML or install it via a package manager, ensuring compatibility with older environments....
read more
How to Get and Set Scroll Position of an Element using JavaScript ?
In this article, we will learn how to get and set the scroll position of an HTML element using JavaScript....
read more
How to replace multiple characters in a string in PHP ?
A string is a sequence of characters enclosed within single or double quotes. A string can also be looped through and modifications can be made to replace a particular sequence of characters in it....
read more
Creating a Simple Image Editor using JavaScript
In this article, we will be creating a Simple Image Editor that can be used to adjust the image values like brightness, contrast, hue, saturation, grayscale, and sepia. Image editors allow one to quickly edit pictures after they have been captured for enhancing them or completely changing their look. Using a combination of various values, one can give an image a completely new look. We will be doing all this in-browser using only HTML, CSS, JavaScript, and the Canvas API making the application lightweight and fast....
read more
How to read write and delete cookies in jQuery ?
In this article, we will learn how to read, write and delete cookies in jQuery. This can be done using the cookie() and removeCookie() methods of the jquery-cookie library. We will first understand what exactly is a cookie....
read more
How to redirect in React with Typescript ?
Navigating users seamlessly through a React application is a fundamental aspect of creating a smooth and intuitive user experience. In this article, we delve into the world of redirects in React, specifically addressing the use of TypeScript for enhanced type safety and developer productivity....
read more
How to add GIFs in react-native ?
React-native is a cross-platform mobile application development tool. It is one of the frameworks built on top of Javascript. Now let’s come to the point.  We usually use .jpeg or .png  images because we are more friendly to them. But what if you want to add GIF support to your react native project. This article will show how to add GIFs in react-native. Now, react-native has that flexibility to support GIFs....
read more
Parameter Destructuring
Destructuring in JavaScript is used to unpack or segregate values from arrays or properties from object literals into distinct variables, thus it allows us to access only the values required....
read more